package com.xiyu.service.enums.medicine;

import com.xiyu.service.enums.material.stock.MaterialStockOutStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 药品缴存方式
*/
@Getter
@AllArgsConstructor
public enum HealthMedicineDepositTypeEnum implements IntArrayValuable {

    /**
    * 院方代缴
    */
    HOSPITAL_DEPOSIT(1, "院方代缴"),
    /**
    * 本人代缴
    */
    SELF_DEPOSIT(2, "本人代缴"),
    /**
    * 家属代缴
    */
    FAMILY_DEPOSIT(3, "家属代缴"),
    /**
    * 医院处方药
    */
    HOSPITAL_PRESCRIPTION(4, "医院处方药");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(HealthMedicineDepositTypeEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(HealthMedicineDepositTypeEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
